#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<conio.h>
typedef struct tree
{
	int n;
	struct tree * L;
	struct tree * R;
}ye;
ye * init()
{
	ye * a=NULL;
	a=(ye *)malloc(sizeof(ye));
	a->L =a->R =NULL;
	a->n =0;
	return a;
}
ye * cre(ye * t)
{
	int n;
	scanf("%d",&n);
	if(n)
	{
		t=init();
		t->n =n;
		t->L =cre(t->L );
		t->R =cre(t->R );
	}
	else
	{
		t=NULL;
	}
	return t;
}
void main()
{
	ye * t=NULL;
	t=cre(t);
}